package ro.prjmanager.core.service;


public class Join {
    String property;
    String type;
    String alias;

    public String getProperty() {
        return property;
    }

    public Join(String property, String type, String alias) {
        this.property = property;
        this.type = type;
        this.alias = alias;
    }

    public Join(String property,String type){
        this.property=property.substring(property.indexOf(".")+1);
        this.type=type;
        this.alias=property.substring(0,property.indexOf("."));
    }

    public void setProperty(String property) {
        this.property = property;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }
}
